package com.web44.springboot.web;

import com.web44.springboot.service.ScheduledService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Title: Scheduled
 * @Description:
 * @Auther: py
 * @Version: 1.0
 * @create 2024/3/4 11:35
 */
@RestController
public class ScheduledController {

    @Autowired
    private ScheduledService scheduledService;

    @GetMapping("scheduled")
    public String  asyncWeb() throws InterruptedException {
        scheduledService.scheduled();
        return "响应成功!";
    }
}
